import java.awt.Rectangle;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JLabel;

import java.awt.Font;


public class PhotoPurchaseOptionsGUI extends JFrame
{	
	private JButton buyButton = null;
	private JButton buySampleButton = null;
	private JButton cancelButton = null;
	private JLabel lblThePhotoIs=null;
	private JPanel contentPane=null;	
	
	public PhotoPurchaseOptionsGUI()
	{
	    JPanel contentPane=new JPanel();
	
		
		   //CustomerService panel 
	    contentPane.setLayout(null);
	    contentPane.setOpaque(true);
	    contentPane.add(getPhotoLabel());
	    contentPane.add(getBuyButton());
	    contentPane.add(getBuysampleButton());
	    contentPane.add(getCancelButton());		
  
		  //Frame
	        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	        this.setTitle("Photo Purchase Options Window");
	        this.setContentPane(contentPane);        
		    this.setLocationRelativeTo(null); //This will center the JFrame in the middle of the screen
	        this.setLocationByPlatform(true);
	        this.setSize(600, 241);
	        this.setVisible( true ); // display frame
	
	}
	
	
	/**
	 * This method initializes  JLabel  photo is found	
	 */
		
	private JLabel getPhotoLabel() {
		if(lblThePhotoIs == null){
			  lblThePhotoIs = new JLabel("The Photo Is Found!!!");
		        lblThePhotoIs.setFont(new Font("Tahoma", Font.PLAIN, 16));
		        lblThePhotoIs.setBounds(188, 52, 183, 13);
		}
		return lblThePhotoIs;
	}
		
	/**
	 * This method initializes Buy Button	
	 */
	private JButton getBuyButton() {
		if (buyButton == null) {
			buyButton = new JButton();
			buyButton.setBounds(new Rectangle(37, 114, 100, 30));
			buyButton.setText("Buy");
			buyButton.addActionListener(new java.awt.event.ActionListener() 
			{
				public void actionPerformed(java.awt.event.ActionEvent e) 
				{
					
					
				 
				
				}
			});
		}
		return buyButton;
	}
	
	
	/**
	 * This method initializes Buy Sample Button	
	 */
	private JButton getBuysampleButton() {
		if (buySampleButton == null) {
			buySampleButton = new JButton();
			buySampleButton.setBounds(new Rectangle(216, 114, 150, 30));
			buySampleButton.setText("Buy Sample");
			buySampleButton.addActionListener(new java.awt.event.ActionListener() 
			{
				public void actionPerformed(java.awt.event.ActionEvent e) 
				{
					
				}
			});
		}
		return buySampleButton;
	}
	
	
	/**
	 * This method initializes Buy Cancel Button	
	 */
	private JButton getCancelButton() {
		if (cancelButton == null) {
			cancelButton = new JButton();
			cancelButton.setBounds(new Rectangle(451, 114, 100, 30));
			cancelButton.setText("Cancel");
			cancelButton.addActionListener(new java.awt.event.ActionListener() 
			{
				public void actionPerformed(java.awt.event.ActionEvent e) 
				{
					
					 
				}
			});
		}
		return cancelButton;
	}
}
